Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataGrid] Fix setPage not working #284

Merged
merged 6 commits into from
Sep 15, 2020
Merged

[DataGrid] Fix setPage not working #284

merged 6 commits into from
Sep 15, 2020

Conversation

dtassone
Copy link
Member

@dtassone dtassone commented Sep 14, 2020

Fix #229

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add a test case?

@dtassone dtassone changed the title Issue 229 [DataGrid] Fix issue #229 setPage not working Sep 14, 2020
@oliviertassinari oliviertassinari changed the title [DataGrid] Fix issue #229 setPage not working [DataGrid] Fix setPage not working Sep 14, 2020
@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! labels Sep 14, 2020
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

});
return (
<div style={{ width: 300, height: 300 }}>
<DataGrid rows={rows} apiRef={apiRef} columns={defaultProps.columns} pageSize={1} />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we should move this test to packages/grid/x-grid/src/XGrid.test.tsx as we plan to remove the apiRef from <DataGrid>.

packages/grid/data-grid/src/DataGrid.test.tsx Outdated Show resolved Hide resolved
packages/grid/data-grid/src/DataGrid.test.tsx Outdated Show resolved Hide resolved
packages/grid/data-grid/src/DataGrid.test.tsx Outdated Show resolved Hide resolved
packages/grid/data-grid/src/DataGrid.test.tsx Outdated Show resolved Hide resolved
packages/grid/data-grid/src/DataGrid.test.tsx Outdated Show resolved Hide resolved
dtassone and others added 3 commits September 15, 2020 11:15
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
@dtassone dtassone merged commit 448d35b into mui:master Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DataGrid] apiRef.setPage is unreliable
2 participants